

	
<?PHP

global $conf;
if(TRUE)
{
	$buffer=$content['content_buffer'];
	if($content['content_delivery']==0)
	{
		$src=$content['content_media'];
		$streamtype="vod";
	}
	else if($content['content_delivery']==1)
	{
		$src=$content['content_media'];
		$streamtype="live";
	}

	if (ereg('iPhone',$_SERVER['HTTP_USER_AGENT'])) {
	$isiPad = TRUE;
	} 
	elseif (ereg('iPod',$_SERVER['HTTP_USER_AGENT'])) {
	$isiPad = TRUE;
	}
	elseif (ereg('iPad',$_SERVER['HTTP_USER_AGENT'])) {
	$isiPad = TRUE;
	}
	else
	{
		$isiPad = TRUE;
	}
	if($isiPad)
	{
		$src=str_replace('rtmp','http',$src);
		?>
		<script type="text/javascript" src="<?PHP echo $conf->absolute_path;?>assets/player/projekktor/projekktor.js"></script>
		<link rel="stylesheet" href="<?PHP echo $conf->absolute_path;?>assets/player/projekktor/style/projekktor_theme_tll/style.css" type="text/css" media="screen" /> 
		<?PHP
	}
	?>

   
	<script type="text/javascript">

	   var flashvars = {
	      'videoFile': '<?PHP echo $src;?>',
	      'setBuffer': '<?PHP echo $buffer;?>',
	'typeofStream': '<?PHP echo $streamtype;?>'
	   };

	   var params = {
	      'allowfullscreen':   'true',
	      'allowscriptaccess': 'always',
	      'bgcolor': '#000000'
	   };

	   var attributes = {
	      'id': 'mediaplayer',
	      'name': 'mediaplayer'
	   };

	   swfobject.embedSWF('<?PHP echo $conf->absolute_path;?>assets/player/krautplayer.swf', 'krautplayer', '780', '520', '10.1.0', 'false', flashvars, params, attributes);
	</script>
	<section id='player-feed'>
		<div id='krautplayer'>
			
   		<?PHP
   		
			if($isiPad)
			{
				?>
					<video class="projekktor" poster="poster.png" title="this is Projekktor" width="780" height="520" controls>
					<source src="<?PHP echo $src;?>/playlist.m3u8" type="video/mp4" />
					<source src="<?PHP echo $src;?>/playlist.m3u8" type="video/ogg" />
				    </video>
				<?PHP				
			}
   		?>
		</div>
		
	
	</section>


<section id='social-commands'>
		<a target='_blank' class='tweet-this'href="http://twitter.com/home?status=Lisetning to: <?php echo $conf->canonical;?>" Title='Tweet this Channel'><img src="assets/icons/twitter_16.png" width="16" height="16" alt="Twitter"> Tweet This</a>
	<div id='fb-like'><fb:like></fb:like></div>

</section>




<div id='content_discovery'>

		<div id="more-content">
			<h2>Welcome to Pinoytuner</h2>
			<p>Envisioned to be the ultimate Filipino entertainment megaportal. Live radio streaming, music on demand, live pocket concerts, new music, indie films, videos, and everything your artistic heart desires. Just click on your preference and we'll bring you to your Pinoytuner. </p>

			<p>Live and On-air on Mellow 947---the Bloom Brothers. Listen NOW.</p>

			<div id="ad-content-discovery-sponsored-by" class="ad"><img src="assets/ads/sponsor.jpg" alt="Sponsor" height="31" width="88"></div>
		</div>
		<div id="fb-find">
			<fb:like-box class="  fb_iframe_widget " profile_id="272331223890" width="300" height="250" stream="false"></fb:like-box>
		</div>
		<div id="ad-content-discovery-box" class="ad">
			<img src="assets/ads/boxad.jpg" alt="Boxad" height="250" width="300">	</div>
</div>



		<?PHP
}
?>